package com.youdoneed.user.query;

import com.querydsl.core.types.Path;
import com.querydsl.core.types.PathMetadata;
import com.querydsl.core.types.dsl.DateTimePath;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.core.types.dsl.StringPath;
import com.querydsl.sql.ColumnMetadata;
import com.youdoneed.user.model.User;

import javax.annotation.Generated;
import java.sql.Types;

import static com.querydsl.core.types.PathMetadataFactory.forVariable;

/**
 * QUser is a Querydsl query type for User
 */
@Generated("com.querydsl.sql.codegen.MetaDataSerializer")
public class QUser extends com.querydsl.sql.RelationalPathBase<User> {

    private static final long serialVersionUID = 1513913848;

    public static final QUser User = new QUser("User");

    public final StringPath address = createString("address");

    public final NumberPath<Integer> allowAddMe = createNumber("allowAddMe", Integer.class);

    public final NumberPath<Integer> allowContactForMe = createNumber("allowContactForMe", Integer.class);

    public final NumberPath<Integer> allowCoolFaceMe = createNumber("allowCoolFaceMe", Integer.class);

    public final NumberPath<Integer> allowMyArticle = createNumber("allowMyArticle", Integer.class);

    public final NumberPath<Integer> allowMyFriends = createNumber("allowMyFriends", Integer.class);

    public final NumberPath<Integer> allowMyInfo = createNumber("allowMyInfo", Integer.class);

    public final NumberPath<Integer> allowMyVideo = createNumber("allowMyVideo", Integer.class);

    public final NumberPath<Integer> allowNearbyMe = createNumber("allowNearbyMe", Integer.class);

    public final NumberPath<Integer> allowRecommendMe = createNumber("allowRecommendMe", Integer.class);

    public final NumberPath<Integer> autoAgreeAddMe = createNumber("autoAgreeAddMe", Integer.class);

    public final StringPath backgroundUrl = createString("backgroundUrl");

    public final DateTimePath<java.util.Date> bornDate = createDateTime("bornDate", java.util.Date.class);

    public final StringPath city = createString("city");

    public final DateTimePath<java.util.Date> createTime = createDateTime("createTime", java.util.Date.class);

    public final NumberPath<Integer> doNotDisturb = createNumber("doNotDisturb", Integer.class);

    public final NumberPath<Integer> gender = createNumber("gender", Integer.class);

    public final StringPath imageUrl = createString("imageUrl");

    public final StringPath jobName = createString("jobName");

    public final NumberPath<Double> latitude = createNumber("latitude", Double.class);

    public final NumberPath<Double> longitude = createNumber("longitude", Double.class);

    public final StringPath name = createString("name");

    public final StringPath nation = createString("nation");

    public final StringPath noticeRegId = createString("noticeRegId");

    public final StringPath organization = createString("organization");

    public final StringPath password = createString("password");

    public final StringPath phoneNo = createString("phoneNo");

    public final StringPath portraitUrl = createString("portraitUrl");

    public final StringPath province = createString("province");

    public final NumberPath<Integer> recommendType = createNumber("recommendType", Integer.class);

    public final StringPath region = createString("region");

    public final NumberPath<Integer> showNearbyArticle = createNumber("showNearbyArticle", Integer.class);

    public final NumberPath<Integer> totalArticle = createNumber("totalArticle", Integer.class);

    public final NumberPath<Integer> totalFriend = createNumber("totalFriend", Integer.class);

    public final NumberPath<Integer> type = createNumber("type", Integer.class);

    public final StringPath userId = createString("userId");

    public final StringPath videoUrl = createString("videoUrl");

    public final com.querydsl.sql.PrimaryKey<User> primary = createPrimaryKey(userId);

    public QUser(String variable) {
        super(User.class, forVariable(variable), "null", "User");
        addMetadata();
    }

    public QUser(String variable, String schema, String table) {
        super(User.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QUser(String variable, String schema) {
        super(User.class, forVariable(variable), schema, "User");
        addMetadata();
    }

    public QUser(Path<? extends User> path) {
        super(path.getType(), path.getMetadata(), "null", "User");
        addMetadata();
    }

    public QUser(PathMetadata metadata) {
        super(User.class, metadata, "null", "User");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(address, ColumnMetadata.named("address").withIndex(9).ofType(Types.VARCHAR).withSize(255));
        addMetadata(allowAddMe, ColumnMetadata.named("allowAddMe").withIndex(35).ofType(Types.INTEGER).withSize(10));
        addMetadata(allowContactForMe, ColumnMetadata.named("allowContactForMe").withIndex(34).ofType(Types.INTEGER).withSize(10));
        addMetadata(allowCoolFaceMe, ColumnMetadata.named("allowCoolFaceMe").withIndex(32).ofType(Types.INTEGER).withSize(10));
        addMetadata(allowMyArticle, ColumnMetadata.named("allowMyArticle").withIndex(30).ofType(Types.INTEGER).withSize(10));
        addMetadata(allowMyFriends, ColumnMetadata.named("allowMyFriends").withIndex(29).ofType(Types.INTEGER).withSize(10));
        addMetadata(allowMyInfo, ColumnMetadata.named("allowMyInfo").withIndex(28).ofType(Types.INTEGER).withSize(10));
        addMetadata(allowMyVideo, ColumnMetadata.named("allowMyVideo").withIndex(27).ofType(Types.INTEGER).withSize(10));
        addMetadata(allowNearbyMe, ColumnMetadata.named("allowNearbyMe").withIndex(31).ofType(Types.INTEGER).withSize(10));
        addMetadata(allowRecommendMe, ColumnMetadata.named("allowRecommendMe").withIndex(33).ofType(Types.INTEGER).withSize(10));
        addMetadata(autoAgreeAddMe, ColumnMetadata.named("autoAgreeAddMe").withIndex(36).ofType(Types.INTEGER).withSize(10));
        addMetadata(backgroundUrl, ColumnMetadata.named("backgroundUrl").withIndex(17).ofType(Types.VARCHAR).withSize(255));
        addMetadata(bornDate, ColumnMetadata.named("bornDate").withIndex(14).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(city, ColumnMetadata.named("city").withIndex(7).ofType(Types.VARCHAR).withSize(128));
        addMetadata(createTime, ColumnMetadata.named("createTime").withIndex(37).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(doNotDisturb, ColumnMetadata.named("doNotDisturb").withIndex(25).ofType(Types.INTEGER).withSize(10));
        addMetadata(gender, ColumnMetadata.named("gender").withIndex(10).ofType(Types.INTEGER).withSize(10));
        addMetadata(imageUrl, ColumnMetadata.named("imageUrl").withIndex(15).ofType(Types.VARCHAR).withSize(255));
        addMetadata(jobName, ColumnMetadata.named("jobName").withIndex(19).ofType(Types.VARCHAR).withSize(50));
        addMetadata(latitude, ColumnMetadata.named("latitude").withIndex(13).ofType(Types.DOUBLE).withSize(22));
        addMetadata(longitude, ColumnMetadata.named("longitude").withIndex(12).ofType(Types.DOUBLE).withSize(22));
        addMetadata(name, ColumnMetadata.named("name").withIndex(2).ofType(Types.VARCHAR).withSize(128).notNull());
        addMetadata(nation, ColumnMetadata.named("nation").withIndex(5).ofType(Types.VARCHAR).withSize(20));
        addMetadata(noticeRegId, ColumnMetadata.named("noticeRegId").withIndex(24).ofType(Types.VARCHAR).withSize(32));
        addMetadata(organization, ColumnMetadata.named("organization").withIndex(20).ofType(Types.VARCHAR).withSize(128));
        addMetadata(password, ColumnMetadata.named("password").withIndex(4).ofType(Types.VARCHAR).withSize(128));
        addMetadata(phoneNo, ColumnMetadata.named("phoneNo").withIndex(3).ofType(Types.VARCHAR).withSize(20));
        addMetadata(portraitUrl, ColumnMetadata.named("portraitUrl").withIndex(16).ofType(Types.VARCHAR).withSize(255));
        addMetadata(province, ColumnMetadata.named("province").withIndex(6).ofType(Types.VARCHAR).withSize(128));
        addMetadata(recommendType, ColumnMetadata.named("recommendType").withIndex(23).ofType(Types.INTEGER).withSize(10));
        addMetadata(region, ColumnMetadata.named("region").withIndex(8).ofType(Types.VARCHAR).withSize(128));
        addMetadata(showNearbyArticle, ColumnMetadata.named("showNearbyArticle").withIndex(26).ofType(Types.INTEGER).withSize(10));
        addMetadata(totalArticle, ColumnMetadata.named("totalArticle").withIndex(21).ofType(Types.INTEGER).withSize(10));
        addMetadata(totalFriend, ColumnMetadata.named("totalFriend").withIndex(22).ofType(Types.INTEGER).withSize(10));
        addMetadata(type, ColumnMetadata.named("type").withIndex(11).ofType(Types.INTEGER).withSize(10));
        addMetadata(userId, ColumnMetadata.named("userId").withIndex(1).ofType(Types.VARCHAR).withSize(20).notNull());
        addMetadata(videoUrl, ColumnMetadata.named("videoUrl").withIndex(18).ofType(Types.VARCHAR).withSize(255));
    }

}

